package com.ruoyi.system.Fdongbei.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.dibang.TbMMGuozhong;
import com.ruoyi.system.Fdongbei.mapper.dibang.TbMMGuozhongMapper;
import com.ruoyi.system.Fdongbei.service.ITbMMGuozhongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * tbService业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-10
 */
@Service
@DataSource(value = DataSourceType.LY002_L)
public class TbMMGuozhongServiceImpl implements ITbMMGuozhongService
{
    @Autowired
    private TbMMGuozhongMapper tbGuozhongMapper;

    /**
     * 查询tb
     * 
     * @param czbh tb主键
     * @return tb
     */
    @Override
    public TbMMGuozhong selectTbGuozhongByCzbh(String czbh)
    {
        return tbGuozhongMapper.selectTbGuozhongByCzbh(czbh);
    }

    /**
     * 查询tb列表
     * 
     * @param tbGuozhong tb
     * @return tb
     */
    @Override
    public List<TbMMGuozhong> selectTbGuozhongList(TbMMGuozhong tbGuozhong)
    {
        return tbGuozhongMapper.selectTbGuozhongList(tbGuozhong);
    }

    /**
     * 新增tb
     * 
     * @param tbGuozhong tb
     * @return 结果
     */
    @Override
    public int insertTbGuozhong(TbMMGuozhong tbGuozhong)
    {
        return tbGuozhongMapper.insertTbGuozhong(tbGuozhong);
    }

    /**
     * 修改tb
     * 
     * @param tbGuozhong tb
     * @return 结果
     */
    @Override
    public int updateTbGuozhong(TbMMGuozhong tbGuozhong)
    {
        return tbGuozhongMapper.updateTbGuozhong(tbGuozhong);
    }

    /**
     * 批量删除tb
     * 
     * @param czbhs 需要删除的tb主键
     * @return 结果
     */
    @Override
    public int deleteTbGuozhongByCzbhs(String[] czbhs)
    {
        return tbGuozhongMapper.deleteTbGuozhongByCzbhs(czbhs);
    }

    /**
     * 删除tb信息
     * 
     * @param czbh tb主键
     * @return 结果
     */
    @Override
    public int deleteTbGuozhongByCzbh(String czbh)
    {
        return tbGuozhongMapper.deleteTbGuozhongByCzbh(czbh);
    }
}
